<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var r = prompt("请输入圆锥的底面半径");
        var h = prompt("请输入圆锥的高");
        var π = 3.14159;
        var v = 1 / 3 * π * r * r * h;
        alert ("圆锥体积是" + v);
    </script>
</head>
<body>
    
</body>
</html>